/*
 * @Date: 2024-08-08 16:25:22
 * @LastEditors: 张良 1077167261@qq.com
 * @LastEditTime: 2024-08-08 17:43:46
 * @FilePath: \My-admin\src\store\getters.js
 */
const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  avatar: state => state.user.userInfo.staffPhoto,//用户头像
  name: state => state.user.userInfo.username,//用户名称
  userId: state => state.user.userInfo.userId,//用户Id
  routes: state => state.user.routes,//路由信息
  departmentName: state => state.user.userInfo.departmentName // 部门名称

}
export default getters
